﻿#include <qqtshortcuts.h>
#include <QFile>
#include <QApplication>

void addLinkToDesktop ( QString appname )
{
//#ifdef __WIN__
//    QFile::link ( QApplication::applicationDirPath()
//                  .append ( "\\" ).append ( appname ).append ( ".exe" ),
//                  QStandardPaths::writableLocation ( QStandardPaths::DesktopLocation )
//                  .append ( "\\" ).append ( appname ).append ( ".exe.lnk" ) );
//#else
//    QFile::link ( QApplication::applicationDirPath()
//                  .append ( "/" ).append ( appname ),
//                  QStandardPaths::writableLocation ( QStandardPaths::DesktopLocation )
//                  .append ( "/" ).append ( appname ) );
//#endif
}
